const storage = {
	setStorage: (key, value) => {
		try {
			uni.setStorageSync(key, value)
		} catch (e) {
			console.log(e);
		}
	},
	getStorage: (key) => {
		try {
			return uni.getStorageSync(key)
		} catch (e) {
			console.log(e);
		}
	},
	hasStorage: (key) => {
		try {
			return uni.getStorageSync(key) !== '' && uni.getStorageSync(key) !== undefined
		} catch (e) {
			console.log(e);
		}
	},
	removeStorage: (key) => {
		try {
			uni.removeStorageSync(key)
		} catch (e) {
			console.log(e);
		}
	}

}
export default storage
